package one.stand;

import com.jmp.autocofiguration.JmpBootApplication;
import com.jmp.livepush.LiveAutoConfiguration;
import com.jmp.video.VideoAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import java.util.TimeZone;

/**
 * @author Administrator
 */
@EnableHystrix
@EnableFeignClients(basePackages = "com.jmp.feign")
@EnableEurekaClient
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@JmpBootApplication
@Import({
        LiveAutoConfiguration.class,
        VideoAutoConfiguration.class
})
public class OneUserServiceApplication {

    public static void main(String[] args) {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(OneUserServiceApplication.class, args);
    }

}
